package by.dvrudenko.avtobaza.services;

import java.util.List;

import javax.persistence.metamodel.SingularAttribute;

import org.springframework.transaction.annotation.Transactional;

import by.dvrudenko.avtobaza.datamodel.Responses;


public interface ResponsesService {

	Responses get(Long id);

	@Transactional
	void saveOrUpdate(Responses responses);

	@Transactional
	void delete(Responses responses);

	@Transactional
	void deleteAll();
	
	List<Responses> getRandomResponses(Integer count);
	
	Long getCount();
	
	List<Responses> getAllResponses(SingularAttribute<Responses, ?> attr, boolean ascending, int startRecord, int pageSize);
	
	
}
